package test;

import java.util.ArrayList;
import java.util.List;

public class test {
    public static void main(String[] args) {
        List<people> shuzu = test.shuzu();
        System.out.println(shuzu);
        test.build(shuzu);


    }
    public static List<people> build(List<people> p){
        List m = new ArrayList<people>();
        for(people n : p){
            if("0".equals(n.getNo1())){
                test.sel(n,p);
                m.add(sel(n,p));
            }
        }
        return m;
    }
    public static List<people> sel(people n,List<people> p){

        return null;
    }
    public static List<people> shuzu(){
        people p1 = new people(1,0,"11");
        people p2 = new people(2,1,"11");
        people p3 = new people(3,1,"11");
        people p4 = new people(4,2,"11");
        people p5 = new people(5,2,"11");
        List p = new ArrayList();
        p.add(p1);
        p.add(p2);
        p.add(p3);
        p.add(p4);
        p.add(p5);
        return p;
    }
}
